package com.pai4j.common.enums;


import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum SubjectRelationStatusEnum {
    CONFIRMED(0, "已订阅"),
    REJECTED(1, "未订阅"),
    ;

    private Integer status;
    private String statusName;

    public static boolean isConfirmed(Integer status) {

        return CONFIRMED.getStatus().equals(status);
    }
}
